<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在线编译java代码</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/dynamicCompiler.js"></script>
    <link rel="stylesheet" type="text/css" href="css/full.css"/>
    <script>

    </script>
</head>
<body onload="keyUp()">
    <div class="headDiv" align="center">
        <input id="submit" type="button" value="运行(RUN)" onclick="testJson();"/>
        <input id="jdk" type="button" value="工具(JDK8API)" onclick="window.open('./jdk8/index.html','_blank')"/>
        <input id="clear" type="button" value="清除(CLEAR)" onclick="clearResult();"/>
    </div>
    <div class="lineDiv">
        <textarea id="li"></textarea>
    </div>
    <div class="se-box">
        <textarea id="boxText" onkeyup="keyUp()" onscroll="G('li').scrollTop = this.screenTop" oncontextmenu="return false" autocomplete="off" style="" placeholder="请输入内容" name="sentence" onkeydown="keyHandler(this)">
//示例
//类名称和花括号要有个空格
//同一个类文件不要写两个类，但是支持内部类
public class Test {
    public static void main(String[] args){
        System.out.println("Hello World!");
        new Test().test();
    }
    public void test(){
        System.out.println("This is Test");
        try{
            A a = new A();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    class A {
        public A(){
            System.out.println("这是a");
        }
    }
}
        </textarea>
    </div>
    <div class="handler"></div>
    <div class="reBox" id="result-box">
        <textarea id="reBoxText" autocomplete="off" style="" placeholder="结果显示在这" name="sentence" readonly="readonly"></textarea>
    </div>
</body>
</html>